from django.conf.urls import url
#from django.urls import path

from app2 import views

urlpatterns = [
    url('user/2017/', views.user_2017),
    url('user/(?P<year>[0-9]+)/$', views.year_user, name='year_user'),
    url('user/(?P<year>[0-9]+)/(?P<month>[0-9]+)/$', views.month_user, name='month_user'),
    url('user/(?P<year>[0-9]+)/(?P<month>[0-9]+)/(?P<slug>.+)/$', views.year_month_slug, name='year_month_slug'), 
    url(r'$', views.index, name='index'),
]


